﻿<!DOCTYPE html>
<html lang="zh-cn" class="fullscreen-bg" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页 | GemFrame开源权限管理系统v1.0.0</title>
    <div th:replace="common/links::common_links"></div>
    <div th:replace="common/links::font_links"></div>
    <div th:replace="common/links::menus_links"></div>
    <link rel="stylesheet" href="static/css/custom/index.css">
    <link rel="stylesheet" href="static/css/skins/_all-skins.css">
    <div th:replace="common/links::layui_links"></div>
</head>
<body class="hold-transition skin-blue sidebar-mini" style="overflow:hidden;">
    <div id="ajax-loader" style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 10000; overflow: hidden;">
        <img src="static/img/ajax-loader.gif" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;" />
    </div>
    <div class="wrapper">
        <!--头部信息-->
        <div th:replace="common/header::head_navbar"></div>
        <!--左边导航-->
        <div th:replace="common/lefter::left_sidebar"></div>
        <!--中间内容-->
        <div th:replace="common/main::main"></div>
    </div>
    <div th:replace="common/links::common_script"></div>
    <div th:replace="common/links::menus_script"></div>
    <script src="static/js/custom/index.js"></script>
    <div th:replace="common/links::layui_script"></div>
    <script type="text/javascript">
        //屏蔽右键菜单
        document.oncontextmenu = function (event){
            if(window.event){
                event = window.event;
            }try{
                var the = event.srcElement;
                if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
                    return false;
                }
                return true;
            }catch (e){
                return false;
            }
        }

        //获取微信
        function getWechat() {
            layer.photos({
                photos: {
                    "data": [{
                        "src": "static/img/769990999.png",
                    }]
                }
                ,area: ['320px','435px']
                ,anim: 0
                ,end: function(){
                    layer.closeAll();
                }
                ,success: function(layero){
                    layer.tips('您可以添加开发者咨询', layero, {
                        tips: [1, '#3595CC']
                        ,time: 0
                    });
                }
            });
        }

        //用户信息
        function userinfo(){
            layer.open({
                type: 2,
                title: '编辑用户',
                shadeClose: true,
                shade: 0.5,
                skin: 'layui-layer-rim',
                closeBtn:0,
                area: ['750px', '574px'],
                content: 'home/userInfo',
            });
        }

        var onClick = function(e) {
            var clicked = function() { alert('Item clicked!') }
            var logout = function() { location.href="logout" }
            var items = [
                // $('.tabReload').on('click', $.learuntab.refreshTab);
                { title: '刷新当前', icon: 'ion-loop', fn: $.learuntab.refreshTab },
                { title: '关闭当前', icon: 'ion-android-close', fn: function () {
                        $('.page-tabs-content').find('.active i').trigger("click");
                    } },
                { title: '关闭其他', icon: 'ion-android-checkmark-circle', fn: $.learuntab.closeOtherTabs },
                { title: '关闭所有', icon: 'ion-minus-circled', fn: function () {
                        $('.page-tabs-content').children("[data-id]").find('.fa-remove').each(function () {
                            $('.LRADMS_iframe[data-id="' + $(this).data('id') + '"]').remove();
                            $(this).parents('a').remove();
                        });
                        $('.page-tabs-content').children("[data-id]:first").each(function () {
                            $('.LRADMS_iframe[data-id="' + $(this).data('id') + '"]').show();
                            $(this).addClass("active");
                        });
                        $('.page-tabs-content').css("margin-left", "0");
                    }},
                { title: '更多功能', icon: 'ion-android-apps', fn: clicked, disabled: true },
                { title: 'Invisible', icon: 'ion-eye-disabled', fn: clicked, visible: false },
                // { },
                { title: '退出登录', icon: 'ion-log-out', fn: logout }
            ]
            basicContext.show(items, e)
        }
        document.addEventListener('DOMContentLoaded', function() {
            //暂不做任何处理
        })



        layui.use(['laydate', 'laypage', 'layer', 'table', 'carousel', 'upload', 'element'], function() {
            var laydate = layui.laydate //日期
                ,laypage = layui.laypage //分页
                ,layer = layui.layer //弹层
                ,table = layui.table //表格
                ,carousel = layui.carousel //轮播
                ,upload = layui.upload //上传
                ,element = layui.element; //元素操作 等等...
            if(top.location.href.indexOf("127.0.0.1") == -1){
                helloGem();
            }
        });

        function helloGem() {
            /*layer弹出一个示例*/
            layer.open({
                type: 1
                ,title: false //不显示标题栏
                ,closeBtn: false
                ,area: '300px;'
                ,shade: 0.8
                ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
                ,btn: ['逛逛社区','理解万岁']
                ,btnAlign: 'c'
                ,moveType: 1 //拖拽模式，0或者1
                ,content: '    <div style="padding: 50px; line-height: 22px; background-color: #1e9fff; color: #fff; font-weight: 300;">\n' +
                    '        Hi，有缘人<br>\n' +
                    '        初次见面便与你一见如故<br>\n' +
                    '        你是我今生最美丽的相遇...<br>\n' +
                    '        <hr>\n' +
                    '        <legend>温馨提示：</legend>\n' +
                    '        由于服务器资源有限，演示系统给您带来不便的体验<br>\n' +
                    '        敬请谅解~~~~~\n' +
                    '    </div>'
                ,success: function(layero){
                    var btn = layero.find('.layui-layer-btn');
                    btn.find('.layui-layer-btn0').attr({
                        href: 'http://www.gemframework.com/bbs'
                        ,target: '_blank'
                    });
                }
            });
        }
    </script>
</body>
</html>
